package com.xigua.chapter_4_FactoryMethod.example;

import com.sun.org.apache.bcel.internal.generic.FADD;
import com.sun.org.apache.bcel.internal.generic.NEW;
import com.xigua.chapter_4_FactoryMethod.example.framework.Factory;
import com.xigua.chapter_4_FactoryMethod.example.framework.Product;
import com.xigua.chapter_4_FactoryMethod.example.idcard.IDCard;
import com.xigua.chapter_4_FactoryMethod.example.idcard.IDCardFactory;

import java.util.ArrayList;
import java.util.List;

/**
 * @author LiRongHua
 * @Title: ${file_name}
 * @Package ${package_name}
 * @Description: ${todo}
 * @date 2022/3/3020:09
 */
public class Main {

    public static void main(String[] args) {
        Factory factory = new IDCardFactory();
        Product zhangsan = factory.create("zhangsan");
        Product lisi = factory.create("lisi");
        lisi.use();
        zhangsan.use();

    }

}
